﻿using SrBBSPro.BaseClasses;
using NPoco;
using System;
using SrBBSPro.Util;

namespace SrBBSPro.Entities
{
    /// <summary>
    /// 机能实体
    /// </summary>
    [TableName("Pages")]
    [PrimaryKey("Id", AutoIncrement = false)]
    public class Pages : BaseEntity<long>
    {
        /// <summary>
        /// 机能ID
        /// </summary>
        public string PageId { get; set; }
        /// <summary>
        /// 机能名
        /// </summary>
        public string PageName { get; set; }
        /// <summary>
        /// 规模
        /// </summary>
        public string Scale { get; set; }
        /// <summary>
        /// 开发者
        /// </summary>
        public string Developer { get; set; }
        /// <summary>
        /// 测试者
        /// </summary>
        public string Tester { get; set; }
        /// <summary>
        /// 修正值
        /// </summary>
        public string Reviser { get; set; }

        /// <summary>
        /// 障害状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 状态名称
        /// </summary>
        [Ignore]
        public string StatusName
        {
            get => Status == "0" ? "确认中" : "完了";
        }

        /// <summary>
        /// 附件
        /// </summary>
        public string Remark { get; set; }


        public long ProjectId { get; set; }
    }
}